﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Nuzzle.Protocol.Types.Game.Context.Roleplay
{
    public class GameRolePlayHumanoidInformations : GameRolePlayNamedActorInformations
    {
        public HumanInformations Human { get; set; }

        public GameRolePlayHumanoidInformations(byte emoteID, double emoteStartTime, short titleID, string titleParam, 
            string name, int contextID, Look.EntityLook look, EntityDispositionInformations disposition)
            : base(name, contextID, look, disposition)
        {
            this.Human = new HumanInformations(emoteID, emoteStartTime, titleID, titleParam);
        }

        public void Serialize(NetworkMessage message)
        {
            base.Serialize(message);
            message.WriterBuffer.writeShort(157);
            this.Human.Serialize(message);
        }
    }
}
